#!/usr/bin/env bash

project_path=$(cd `dirname $0`; cd .. ; pwd)
cd $project_path

path=$1
cd $path
#还原代码
echo '----------'
echo 还原:
echo '----------'
echo ''

git checkout .  || exit
git clean -df  || exit
git checkout .  || exit
git pull  || exit

